package cn.hiapi.shopkeeper.service;

import cn.hiapi.shopkeeper.entity.order.ActivityOrder;

/**
 * @author AdinZ
 * @date 2023/2/24 12:14
 */
public interface ShopkeeperNotifyService {

    enum OrderNotifyType {
        CREATE("创建订单"),
        PAYMENT("订单支付成功"),
        ORDER_USE("订单核销成功"),
        COMMENT("订单评论成功"),
        CLOSE("订单被关闭"),
        GROUP_FAIL("订单团购失败"),
        GROUP_SUCCESS("订单团购成功");

        OrderNotifyType(String name) {

        }
    }

    /**
     * 订单通知
     *
     * @param type
     * @param order
     */
    void orderNotify(OrderNotifyType type, ActivityOrder order);


}
